#include <iostream>

class Person
{

public:
    int age;
    std::string name;

    Person(int age, std::string name) : name(name), age(age) {}
};

int main(int argc, char const *argv[])
{
    Person p1(13, "小明");

    Person p2(p1);

    std::cout << &p1 << std::endl;
    std::cout << &p2 << std::endl;

    std::cout << &p1.age << std::endl;
    std::cout << &p2.age << std::endl;
    std::cout << &p2.name << std::endl;

    std::cout << p1.age << "\t" << p1.name << std::endl;
    std::cout << p2.age << "\t" << p2.name << std::endl;

    return 0;
}
